package com.sskj.xyft.login.presenter;

import com.sskj.base.utils.RxUtils;
import com.sskj.xyft.BasePresenter;
import com.sskj.xyft.api.Api;
import com.sskj.xyft.api.ApiObserver;
import com.sskj.xyft.login.WebViewAgressActivity;


public class WebViewAgressActivityPresenter extends BasePresenter<WebViewAgressActivity> {
    public void getAgree(String id) {
        Api.getInstance().getAgress(id)
                .compose(RxUtils.transform())
                .subscribe(new ApiObserver<String>(this, true) {
                    @Override
                    public void onSuccess(String data) {
                        mView.loadData(data);
                    }
                });

    }
}
